import axios from "./index";
// 获取用户信息
export const getUserInfo=(username)=>axios({url:`/api/User/`+username,method:"get"})
export const getUserCreation=(username)=>axios({url:`/api/Creation/`+username,method:"get"})
export const getLiveCreation=(username)=>axios({url:`/api/praise/list/`+username,method:"get"})
// 获取用户信息 http://1.92.82.82:3001/api/User/zhangsan
export const getUserinfo=(username)=>axios({url:`/api/User/${username}`,method:"get"});
// 上传头像接口
export const getPortrait=(data)=>axios({url:`/api/portrait`,method:"post"},data);
// 更新数据 http://1.92.82.82:3001/api/User/Update
export const getUpdata=(data)=>axios({url:`/api/User/Update`,method:"put",data});

